package net.game.server.io.net;

import net.game.server.io.net.codec.LoginDecoder;
import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;
import org.jboss.netty.channel.Channels;

public class ServerPipelineFactory implements ChannelPipelineFactory {
    @Override
    public ChannelPipeline getPipeline() throws Exception {
        ChannelPipeline pipeline = Channels.pipeline();
        pipeline.addFirst("decoder", new LoginDecoder());
        pipeline.addLast("handler", new ConnectionHandler());
        return pipeline;
    }
}
